package com.example.demo.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;

public class Aunt implements Serializable {
    private Integer aid;
    private String aname;
    private String acardid;
    private String atel;
    private String aaddr;
    private Date ahireday;
    private BigDecimal asalary;

    public Aunt(Integer aid, String aname, String acardid, String atel, String aaddr, Date ahireday, BigDecimal asalary) {
        this.aid = aid;
        this.aname = aname;
        this.acardid = acardid;
        this.atel = atel;
        this.aaddr = aaddr;
        this.ahireday = ahireday;
        this.asalary = asalary;
    }

    public Aunt() {
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAcardid() {
        return acardid;
    }

    public void setAcardid(String acardid) {
        this.acardid = acardid;
    }

    public String getAtel() {
        return atel;
    }

    public void setAtel(String atel) {
        this.atel = atel;
    }

    public String getaaddr() {
        return aaddr;
    }

    public void setaaddr(String aaddr) {
        this.aaddr = aaddr;
    }

    public Date getAhireday() {
        return ahireday;
    }

    public void setAhireday(Date ahireday) {
        this.ahireday = ahireday;
    }

    public BigDecimal getAsalary() {
        return asalary;
    }

    public void setAsalary(BigDecimal asalary) {
        this.asalary = asalary;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Aunt aunt = (Aunt) o;
        return Objects.equals(aid, aunt.aid) && Objects.equals(aname, aunt.aname) && Objects.equals(acardid, aunt.acardid) && Objects.equals(atel, aunt.atel) && Objects.equals(aaddr, aunt.aaddr) && Objects.equals(ahireday, aunt.ahireday) && Objects.equals(asalary, aunt.asalary);
    }

    @Override
    public int hashCode() {
        return Objects.hash(aid, aname, acardid, atel, aaddr, ahireday, asalary);
    }

    @Override
    public String toString() {
        return "Aunt{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", acardid='" + acardid + '\'' +
                ", atel='" + atel + '\'' +
                ", aaddr='" + aaddr + '\'' +
                ", ahireday=" + ahireday +
                ", asalary=" + asalary +
                '}';
    }
}
